package com.itheima.travel.dao;

import com.itheima.travel.domain.Route;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RouteDao {


  List<Route> findRouteByCid(@Param("cid") int cid,@Param("rname") String rname);

//  旅游路线
    Route findRouteByRid(Integer rid);


  //根据rid查询Route
  @Select("select * from tab_route where rid = #{rid}")
   Route findRoute(int rid);
}
